package com.trailwalker.javafx.utils.thread;

import javafx.application.Platform;

/**
 * @author Trailwalker
 * @create 2021-07-11 16:07
 * @des
 */
public class ThreadUtils {

    public static void runOnUiThread(Runnable runnable) {
        Platform.runLater(runnable);
    }

    public static void runOnChildThread(Runnable runnable) {
        new Thread(runnable).start();
    }
}
